class CreateCollections < ActiveRecord::Migration
  def self.up
    create_table :collections do |t|
      t.date :collection_date
      t.integer :collected_by
      t.float :amount
      t.string :currency, :default=>'TL'
      t.float :currency_rate
      t.integer :activity_id
      t.integer :percent

      t.timestamps
    end
  end

  def self.down
    drop_table :collections
  end
end
